{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/user_header.html"}
{literal}
<script type="text/javascript">
    $(function(){
        $('.assortment').hover(function(){
            $('.assort_list').stop().fadeIn();
        },function(){
            $('.assort_list').stop().fadeOut();
        });
    });
</script>
<script type="text/javascript" src="/js/jquery.autocom.js"></script>
<script type="text/javascript" src="/js/user.js"></script>


<script type="text/javascript">
    $(function(){
        initAutoComplete($("[id*=search_c]"));
    });

    function initAutoComplete(input){
        input.autocomplete("/json/getProduct", {
            tableHead: "<div class='head'><span class='col-1'>牌号</span> <span class='col-2'>厂商</span>  <span class='col-3'>品种</span></div>",
            minChars: 0,
            width: 425,
            scrollHeight: 340,
            selectFirst: false,
            formatItem: formatItem,
            formatResult: formatResult
        }).result(function(e,data,value,sec){/**加选中后的回调函数**/
        $("input[name=product_id]").val(data[0]);
            $("input[name=product_name]").val(data[1]);
            $("input[name=brand_name]").val(data[2]);
            $("input[name=cate_name]").val(data[3]);


        });
        $(function(){
            $(".brand_name").on("change",function(){
                $(".product_id").val("");
            })

            $(".cate_name").on("change",function(){
                $(".product_id").val("");
            })
        });

        function formatItem(row,i, max) {
            return "<span class='col-1'>" + row[1] + "</span> " + "<span class='col-2'>" + row[2] + "</span>"  + "<span class='col-3'>" + row[3] + "</span>";
        }
        function formatResult(row) {
            return row[0];
        }
    }

    $(function(){
        $('#datetimepicker').datetimepicker({
            onGenerate:function( ct ){
                $(this).find('.xdsoft_date')
                        .toggleClass('xdsoft_disabled');
            },
            lang:'ch',
            timepicker:false,
            format:'Y-m-d',
            formatDate:'Y-m-d',
//            minDate:'-1970/01/01',
            maxDate:'+1970/01/01',
            timepicker:false,
            todayButton:true, // 2.1.0
        });
    });
</script>
<style>
    .assort_list{display: none;}
</style>
<style type="text/css">
    .ac_results {
        padding: 0px;
        border: 1px solid #ddd;
        background-color: white;
        overflow: hidden;
        z-index: 99999;
    }
    .head {background: #f1f1f1; line-height: 26px; text-align: center;}

    .ac_results ul {
        width: 100%;
        list-style-position: outside;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .ac_results li {
        margin: 0px;
        padding: 2px 5px;
        cursor: default;
        display: block;
        /*
        if width will be 100% horizontal scrollbar will apear
        when scroll mode will be used
        */
        /*width: 100%;*/
        font: menu;
        font-size: 12px;
        /*
        it is very important, if line-height not setted or setted
        in relative units scroll will be broken in firefox
        */
        line-height: 16px;
        overflow: hidden;
    }

    .ac_loading {
        background: white url('indicator.gif') right center no-repeat;
    }

    .ac_odd {
        background-color: #eee;
    }

    .ac_over {
        background-color: #00a0e8;
        color: white;
        line-height: 26px;;
    }

    .ac_results .col-1{display:inline-block;width:30%; margin-right: 15px; line-height: 22px;}
    .ac_results .col-2{display:inline-block;width:30%; margin-right: 15px; line-height: 22px;}

    .ac_results .col-3{display:inline-block;width:30%; line-height: 22px;}
    .ac_results .col-4{display:inline-block;width:30%;}

    .ac_navi{
        background:#fff;
        color: #666666;
        border-top:1px solid #ddd;
        margin:0;
        padding:4px;
        text-align:left;
        font-size:12px;
        font-weight:normal;
        line-height:1;
    }
    .ac_navi a:link,
    .ac_navi a:visited,
    .ac_navi a:hover,
    .ac_navi a:active{
        color:#00a0e8;
        font-size:12px;
        text-decoration:underline;
        margin:0px 4px;
        font-weight:normal;
    }
    .ac_navi p{
        font-size:13px;
        text-align:center;
        color:black;
        padding-top:4px;
        margin:0;
    }

    .ac_navi .page_end{
        color:gray;
        margin:0px 4px;
        font-weight:normal;
        font-family: '微软雅黑';

    }
    .ac_navi .navi_page{
        color: #00a0e8;
        font-size: 12px;
    }
    .ac_navi .navi_page .current{
        font-weight: bold;
    }

</style>
{/literal}

<div class="help_center">

<div class="crumbs_tmg" style="padding-top:0;">当前位置：<a href="#">首页</a><i class="ffs">></i><a href="#">会员中心</a><i class="ffs">></i><span class="blue">发布单条报价</span></div>

    {include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/menu_title.html"}
    <div class="user_content">
    	<h3 class="user_title j_ut">
        	<ul>
            	<li class="curr">发布单条报价</li>
            </ul>
        </h3>
        
        
        <div class="receiving_address">
        	<ul class="company_certification" style="padding-top:50px; padding-left:50px;">
                <li class="ml77"><span class="fl mt5"><i class="orange">*</i>公司名称： </span>
                    <div class="popup_se w295">
                        <label></label>
                        <div class="popup_semg">
                            <select name="business_id" id="business_id">
                                {if $business_info neq ''}
                                {foreach from=$business_info key=key item=item}
                                <option value="{$item.business_id}">{$item.business_name}</option>
                                {/foreach}
                                {/if}
                            </select>
                        </div>
                    </div>
                </li>
                <input type="hidden" name="product_id" class="product_id">
                <li class="ml77"><span class="fl mt5"><i class="orange">　　*</i>品种：</span><input class="popup_text w280" name="cate_name"  type="text" id="search_c00" placeholder=""/></li>
                <li class="ml77"><span class="fl mt5"><i class="orange">　　*</i>牌号：</span><input class="popup_text w280 search_c" name="product_name" id="search_c" type="text" placeholder=""/></li>
                <li class="ml77"><span class="fl mt5"><i class="orange">　　*</i>厂商：</span><input class="popup_text w280" name="brand_name"  type="text" id="search_c001" placeholder=""/></li>
                <li class="ml77"><span class="fl mt5"><i class="orange">　　*</i>单价：</span><input class="popup_text w280" name="price" type="text" onkeyup="this.value=this.value.replace(/[^\d.]/g,'') " onafterpaste="this.value=this.value.replace(/[^\d.]/g,'')" placeholder=""/>

                    <label class="pr20 pl10"><input name="currency_id" checked="checked" type="radio" value="1" class="check_box mr5"/>人民币</label>
                    <label><input name="currency_id" type="radio" value="2"  class="check_box mr5"/>美金</label>

                </li>
                <li class="ml77"><span class="fl mt5"><i class="orange">　　*</i>数量：</span><input class="popup_text w280" name="num" type="text" onkeyup="this.value=this.value.replace(/[^\d.]/g,'') " onafterpaste="this.value=this.value.replace(/[^\d.]/g,'')" placeholder=""/><span class="pl10">吨</span></li>
                <li class="ml77"><span class="fl mt5"><i class="orange">*</i>交易类型： </span>
                    <div class="popup_se w295">
                        <label></label>
                        <div class="popup_semg">
                            <select name="service_id" id="service_id">
                                {if $service_info neq ''}
                                {foreach from=$service_info key=key item=item}
                                <option value="{$item.id}">{$item.service_name}</option>
                                {/foreach}
                                {/if}
                            </select>
                        </div>
                    </div>
                </li>

                <li class="ml77"><span class="fl mt5">　<i class="orange">*</i>交货地：</span>
                    <div class="popup_se">
                        <label></label>
                        <select name="province_id" class="province_id">
                            <option value="0">选择省</option>
                            {foreach from=$_getAreaname key=key item=item}
                            <option value="{$key}">{$item}</option>
                            {/foreach}
                        </select>
                    </div>
                    <div class="popup_se">
                        <label></label>
                        <select name="city_id" class="city_id">
                            <option value="0">选择市</option>
                        </select>
                    </div>

                    <div class="popup_se">
                        <label></label>
                        <select name="area_id" class="area_id">
                            <option value="0">选择县</option>
                        </select>
                    </div>
                    <span>至少选择一个</span>
                </li>
                
                <!--<li class="ml77"><span class="fl mt5">　<i class="orange">*</i>交货地：</span>-->
                    <!--<div class="popup_se">-->
                        <!--<label></label>-->
                        <!--<select name="">-->
                            <!--<option>省</option>-->
                            <!--<option>上海市</option>-->
                            <!--<option>北京市</option>-->
                            <!--<option>天津市</option>-->
                        <!--</select>-->
                    <!--</div>-->
                    <!--<div class="popup_se">-->
                        <!--<label></label>-->
                        <!--<select name=""><option>市</option><option>上海市</option></select>-->
                    <!--</div>-->
                   <!--<input class="popup_text w280" name="delivery_area" type="text" placeholder=""/>-->
                <!--</li>-->
                <li class="ml77"><span class="fl mt5"><i class="orange">*</i>交货时间：</span><input name="delivery_time" id="datetimepicker" class="popup_text w280" type="text" placeholder=""/></li>
                <li class="ml155"><input type="button" class="ppfile_btn1 save_pub_quote" value="发   布"/></li>
                
            </ul>
            
            
            
        </div>
        
    </div>
</div>

{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/footer.html"}